/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Çağatay Kızıldağ
 */
public class rasyonel
{
public int rasyonel (int a,int b)
    {
    while (a != b)
        {
        if ( a > b)
            a = a-b;
        else
            b = b-a;
        }
    return (a-b)/(b-a);
    }
}